{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "/tmp/aa/bb\n"
     ]
    }
   ],
   "source": [
    "import os\n",
    "path = '/tmp/aa/bb/a.log'\n",
    "print(os.path.dirname(path))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXYAAAD8CAYAAABjAo9vAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAIABJREFUeJzt3XtwXOV9//H3V7JsyWBiI9lGGEuy\nweUSDHiqElz/hik4EKAhkEATHOFx+aXVJIEpNClgUMqPkrg4zcQNMxASNRcuUgm3EAghIVxMndAA\nkbEx5i6M5cgYfMHCBjmRLX1/f2hX0WV3tZeze/byec08g/acs+c86xXf8+g53+d5zN0REZHiURZ2\nBUREJFgK7CIiRUaBXUSkyCiwi4gUGQV2EZEio8AuIlJkFNhFRIqMAruUPDOrNLPnzOwFM3vJzP4t\nsn2OmT1rZm+Y2d1mNjHsuookQ4FdBP4EnO7uJwInAWeZ2SnAN4H/dPd5wG7gCyHWUSRpE8K4aE1N\njTc0NIRxaSkBa9eu3enu05M93geHX38QeVkRKQ6cDnw+sv124Hrg1kTn0u+2ZFOyv9uhBPaGhgY6\nOjrCuLSUADPrSuM95cBa4CjgFuBNoMfdD0QO6QZmxXlvM9AMUFdXp99tyZpkf7dDCewi+cbd+4GT\nzGwq8ABwbKzD4ry3FWgFaGxs1ORLkpafrdvKtx59jbd79nH41Cqu/MTRnL8gZltiXArsIsO4e4+Z\nPQWcAkw1swmRVvsRwNuhVk6K1s/WbeWan77Ivv39AGzt2cc1P30RIK3groenUvLMbH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\nCeyzgD8Me90d2VY0zKwBWAA8C8x0920wGPyBGeHVLGPfAa4CBiKvq4Eedz8QeV1036VIvsuXwG4x\nthVNuo6ZHQzcD1zh7nvCrk9QzOyTwHZ3Xzt8c4xDi+a7FCkE+bKYdTcwe9jrI4C3Q6pLoMysgsGg\n3u7uP41sftfMat19m5nVAtvDq2FGFgGfMrNzgErgEAZb8FPNbEKk1V4036VIociXFvvvgXmRbIqJ\nwEXAQyHXKWOR/uYfAq+4+6phux4ClkV+XgY8mOu6BcHdr3H3I9y9gcHv7El3bwJWAxdGDivYzydS\nqPIisEdadpcBjzL4gPEed38p3FoFYhGwFDjdzNZHyjnASuAMM3sDOCPyuphcDXzFzDoZ7HP/Ycj1\nESkpGnkqIlJk8qLFLiIiwVFgFxEpMgrsIiJFRoFdRKTIKLCLiBQZBXYRkSKjwC4iUmQU2EVEisz/\nB0TN/0SVK4HlAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x117c2b1d0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "import pandas as pd\n",
    "from numpy. random import randn\n",
    "\n",
    "fig = plt. figure()\n",
    "\n",
    "ax1 = fig.add_subplot( 2, 2, 1)\n",
    "ax2 = fig.add_subplot( 2, 2, 2)\n",
    "ax3 = fig.add_subplot( 2, 2, 3)\n",
    "\n",
    "_ = ax1.hist( randn( 100), bins=20, color='k', alpha= 0.3) \n",
    "_ = ax2.scatter( np.arange( 30), np.arange( 30) + 3 * randn( 30))\n",
    "_ = ax3.plot(randn(50).cumsum(), 'ko--')\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
